package web.study.spring.quartz;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class QuarzJobTest
{
    
    /**
     * @param args
     * @throws FileNotFoundException 
     */
    public static void main(String[] args) throws FileNotFoundException
    {
        InputStream is = new FileInputStream("src/appcontext.xml");
        System.out.println("Test start.");
        ApplicationContext context = new FileSystemXmlApplicationContext("src/appcontext.xml");
        
        //如果配置文件中将startQuertz bean的lazy-init设置为false 则不用实例化
        //context.getBean("startQuertz");
        System.out.print("Test end..");
        
    }
    
}